//
//  HMCustomAlertView.h
//  HMMarket
//
//  Created by haohao on 2017/6/7.
//  Copyright © 2017年 homai. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef enum select_type{
    CANCLR = 0,
    ACTION
}select_type;
@class HMCustomAlertView;

@protocol HMCustomAlertViewDelegate <NSObject>

- (void)alert:(HMCustomAlertView *)alertView clickBnt:(select_type)clickBtn;

@end

@interface HMCustomAlertView : UIView

@property (nonatomic, assign) id<HMCustomAlertViewDelegate>delegate;

- (instancetype)initWithTitle:(NSString *)title contentString:(NSString *)contentString cancleString:(NSString *)cancle actionString:(NSString *)action;

- (void)show;

- (void)dismiss;

@end
